package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.TrackInfoVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

public interface TrackInfoService extends IService<TrackInfo> {
    /**
     *音频上传
     * @param file
     * @return
     */
    Object uploadTrack(MultipartFile file);

    /**
     * 音频上传
     * @param trackInfoVo
     */
    void saveTrackInfo(TrackInfoVo trackInfoVo);

    Object findUserTrackPage(Integer page, Integer size, TrackInfoQuery trackInfoQuery);

    void removeTrackInfo(Long trackId);

    Object getTrackInfo(Long trackId);

    void updateTrackInfo(Long trackId,TrackInfoVo trackInfoVo);
}
